import { createSlice } from "@reduxjs/toolkit"

const authSlice = createSlice({
  name: 'authSlice',
  initialState: {
    menuList: []
  },
  reducers: {
    setMenus: (state, action) => {
      state.menuList = action.payload
    }
  }
})

export const { setMenus } = authSlice.actions

export default authSlice